package com.kakarote.crm9.erp.ding.service;

import com.jfinal.plugin.activerecord.Db;
import com.kakarote.crm9.erp.ding.entity.DingConfig;

import java.util.List;

public class DingConfigService {
    public List<DingConfig> get(){
        List<DingConfig> list = Db.query("SELECT * FROM ding_config  WHERE id = 1");
       return list;
    }

    public DingConfig getConfig(){
        DingConfig dingConfig = DingConfig.dao.findFirst(Db.getSql("ding.ding.get"));
        return dingConfig;
    }


}
